package com.zhoust.design.strategy.stategy;

import com.zhoust.design.strategy.annotation.PayCodeAnnotation;
import com.zhoust.design.strategy.intf.PayStrategy;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;

/**
 * @author zhoushengtao
 * @version v1.0
 * @date 2021/11/1 20:42
 * @desc 微信支付
 */
@Slf4j
@Component
@PayCodeAnnotation(payCode = "2")
public class WeiCharPay  implements PayStrategy {

    public void pay() {
        log.info("我是微信支付，我开始微信支付支付逻辑。。");
    }

    public void payStatus(String payId) {
        log.info("我是微信支付，我开始查询payId={}的支付状态。。",payId);
    }
}
